<?php
namespace app\modules\pay\services;

use app\common\services\BaseService;
use app\models\UserCredential;

class UserService extends BaseService{

    /**
     * 获取凭证
     * @param $id
     * @param $type
     * @return UserCredential|null
     */
    public static function getCredential($id,$type){
        return UserCredential::findOne(['user_id'=>$id,'type'=>$type]);
    }
}